<!--  -->
<template>
  <view class="c-empty">
    <image src="@/assets/images/empty.png" mode="scaleToFill" />
    <text>{{ text }}</text>
  </view>
</template>

<script lang="ts" setup>
  defineProps({
    text: {
      type: String,
      default: '暂无数据',
    },
  });
</script>

<style lang="scss" scoped>
  .c-empty {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text {
      font-size: 28rpx;
      color: $uni-color-subtitle;
    }

    image {
      width: 394rpx;
      height: 286rpx;
    }
  }
</style>
